<template>
  <n-config-provider :theme-overrides="themeOverrides" :locale="zhCN" :date-locale="dateZhCN">
    <n-message-provider>
      <n-dialog-provider>
        <slot></slot>
      </n-dialog-provider>
    </n-message-provider>
  </n-config-provider>
</template>

<script setup>
import { NConfigProvider, zhCN, dateZhCN } from "naive-ui";
const themeOverrides = {
  //可以配置全局，也可以配置单独的组件的颜色
  common: {
    primaryColor: "#2d8cf0",
    primaryColorHover: "#4098fc",
    primaryColorPressed: "#1060c9",
  },
};
</script>

<style scoped>
</style>